const status200 = (res, object) => {
    let statusObject = {
        code: 200,
        msg: 'success'
    }
    statusObject = Object.assign(statusObject, object)
    res.send(statusObject)
}


const status401=(res,object)=>{
    let statusObject = {
        code: 401,
        msg: 'error'
    }
    statusObject = Object.assign(statusObject, object)
    res.send(statusObject)
}


const status500 = (res, object) => {
    let statusObject = {
        code: 500,
        msg: 'error'
    }
    statusObject = Object.assign(statusObject, object)
    res.send(statusObject)
}

module.exports = {
    status200,
    status500,
    status401
}